﻿@{
    ViewBag.Title = "Index";
    ViewBag.userForDelete = "none";
}
<div>



    This page is appointed for creatig new and managing existing users<br /><br />
  
    @Html.ActionLink("Create User","CreateUser",null,new { @class="buttons-yellow"})
    <br /><br />
Search by</div>     
<div>
    @using (Ajax.BeginForm("UserTable", new AjaxOptions
    {
        UpdateTargetId = "table",
        LoadingElementId = "loading",
        LoadingElementDuration = 1000
    }))
    {
    <div>
    <table class="filter-tabel">
       
      
         <tr> 
             <th>Field Filter</th> 
             <th></th> 
             <th></th> 
             <th></th> 
         </tr>

       
         <tr>
             <th>
                 @Html.DropDownList("listSelectField", new SelectList(new string[] { "User Name", "First Name", "Last Name", "Role" }), new { @id ="combobox" })
             </th>

             <th>
                 @Html.DropDownList("listSelectCondition",new SelectList(new string[] { "starts with", "equals", "contains"}), new { @id ="combobox1" } )
             </th>
            
             <th>
                 @Html.TextBox("searchString",null,new { @class = "admin-drop-list border" })
             </th>

             <th>
                 @Html.CheckBox("statusCheckBox") UsersOnline
             </th>

             <th>
                 <input type="submit" value="Filter" class="buttons-blue" />
             </th>
                              

          </tr>

    </table>
         </div>
    }
<div id="table">
    @Html.Partial("~/Views/Administration/UserTable.cshtml")
</div>
    <div style="position:absolute;text-align:right;margin-left:810px;margin-top:11px;">
      <img id="loading" src="@Url.Content("~/Content/images/loading.gif")" style="display:none" />
        </div>
</div> 